package com.ynet.middleground.contract.bean;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 文本签请求类
 * @date 2020-04-12 00:01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "文本加签请求类", description = "文本加签请求类")
public class TextSignReq extends EnterpriseBaseReqObj {

    private static final long serialVersionUID = 6529782654255738562L;

    @ApiModelProperty(value = "签署者账号标识", notes = "签署者账号标识", dataType = "String", required = true)
    @NotBlank(message = "签署者账号标识不能为空")
    private String accountId;

    @ApiModelProperty(value = "待签署文本数据", notes = "待签署文本数据", dataType = "String", required = true)
    @NotBlank(message = "待签署文本数据不能为空")
    private String srcData;

    @ApiModelProperty(value = "短信验证码，必须通过 e 签宝接口发送", notes = "短信验证码，必须通过 e 签宝接口发送", dataType = "String",
        required = true)
    @NotBlank(message = "短信验证码不能为空")
    private String code;

    @ApiModelProperty(value = "合约 id", notes = "合约 id", dataType = "Integer")
    private Integer contractId;

    @ApiModelProperty(value = "场景描述", notes = "场景描述", dataType = "String")
    private String sceneDesc;

}
